import request from '@/utils/request'

// 新增收货入库
export function addWarehouse(data) {
  return request({
    url: '/base/manage/putStorage/addGoodsReceive',
    method: 'post',
    data: data
  })
}

// 根据重量长宽高返回入库上架的库位号
export function computeVolume(data) {
  return request({
    url: '/base/manage/putStorage/selectAssignedLocationIdAndNameAndVolumeWeightAndExtraFee',
    method: 'post',
    data: data
  })
}

// 根据输入的userId查询用户信息
export function getuUserInfo(id) {
  return request({
    url: `/base/manage/putStorage/selectUserInfoByUserId/${id}`,
    method: 'get'
  })
}

// 快递预报信息
export function getCourier(courierNumber) {
  return request({
    url: `/base/manage/putStorage/isPrediction/${courierNumber}`,
    method: 'get'
  })
}
